const http = require('http');
const os = require('os');

console.log('Kubia server starting...');

var handler = function(request, response) {
	console.log('Received reqest from ' + request.connection.remoteAddress);
	response.writeHeader(200);
	response.end('You\'ve hit ' + os.hostname() + '\n');
};

var www = http.createServer(handler);
www.listen(8080);